The Supreme Court ruled Tuesday that states must look beyond an intelligence test score in borderline cases of mental disability to determine whether a death row inmate is eligible to be executed.

The justices said in a 5-4 decision that Florida and a handful of other states cannot rely solely on an IQ score above 70 to bar an inmate from claiming mental disability. Justice Anthony Kennedy said for the court that IQ tests have a margin of error and that inmates whose scores fall within the margin must be allowed to present other evidence of mental disability.