the court ruled