Authorities say New York City has agreed to pay $40 million to settle civil rights lawsuits filed by five people who claimed they were wrongfully convicted of murder in the Bronx.

The New York Times reports the Law Department said Thursday it had agreements with three plaintiffs and agreed to two more in principle.

The plaintiffs are to receive $8 million each. Their lawsuits accused two police detectives of misconduct during the investigation. Each of the plaintiffs spent over 17 years behind bars.

Three of the plaintiffs were convicted in the 1995 killings of a livery cab driver and a Federal Express executive. The other two were convicted only in the cab driver's slaying.

The Law Department says the settlements are in the best interest of the city.