MARYSVILLE, Calif. (AP) – Lawyers representing inmates at a California county jail have asked a federal judge to enforce a nearly 40-year-old court order, citing what they say are deteriorating conditions that have led to dozens of suicide attempts.

The Yuba County Jail in Marysville is again rife with constitutional violations that have resulted in poor treatment of physically and mentally ill inmates, the attorneys said in a federal court filing Monday.

READ MORE: The Cost Of $4.99 Rotisserie Chickens: Costco Gets Sued For Animal Mistreatment

They said there have been at least 41 suicide attempts in the past 2½ years.

Sheriff’s department spokeswoman Leslie Carbah said she couldn’t comment on the pending legal action. She referred questions to the county counsel’s office, which did not respond to telephone messages.

The lawyers allege that mentally ill inmates are often isolated in windowless cells for weeks at a time or housed in “rubber rooms” filthy with blood and feces at the jail about 40 miles north of Sacramento.

READ MORE: These US Companies Will Cover Travel Costs For Employees Who Need An Abortion

Many of the prisoners are awaiting trial and have been convicted of no crime, according to the filing by attorneys with the UC Davis School of Law and the San Francisco firm of Rosen Bien Galvan & Grunfeld.

The court motion says about half the jail’s 426 beds are filled by immigration detainees under contract with the U.S. government.

A separate complaint by the San Francisco firm targeting poor conditions in state prisons helped force changes that include a 5-year-old law that sends lower-level felons to county jails.

MORE NEWS: Survivors Of Two Pandemics Credit Pets With Helping Them Survive

County sheriffs frequently complain that they are poorly prepared to deal with serious, long-term offenders who they say often have mental health issues.