SACRAMENTO (CBS / AP) — California prison officials said Wednesday that they will change the rules for using pepper spray on mentally ill inmates, as a federal judge considers whether current practices violate inmates’ civil rights.

The corrections department will limit how much pepper spray can be used and how quickly, said spokeswoman Deborah Hoffman. The rules are still being written and would not apply to emergency situations.

READ MORE: San José School District Secures Vaccine for Entire Workforce

The state’s announcement comes as U.S. District Judge Lawrence Karlton ordered corrections officials to publicly release videos that show prison guards pumping pepper spray into the cells of mentally disturbed inmates, some of whom begin shrieking or yelling for help.

The videos were shown during a hearing over the use of force against mentally ill inmates. The state’s own expert said in court documents that guards routinely use canisters of pepper spray the size of a fire extinguisher on unarmed inmates when a much smaller quantity could be used.

“Obviously, it’s our goal to use a minimal amount of force. Having it spelled out may help these situations stay more in control,” Hoffman said.

Michael Bien, one of the attorneys representing mentally ill inmates, praised the move but said it doesn’t go far enough.

“It’s a big step, and I think that it’s a significant admission that the department needed to reform,” he said.

However, the department is “kind of fine-tuning how they use pepper spray” instead of asking, “is this the type of weapon they ought to be using or are there other ways to avoid use of force?”

READ MORE: Golden Gate Fields Races to Make Up for Missed Vaccine Appointments

The weekslong hearing grew out of Karlton’s decision in April to reject Gov. Jerry Brown’s effort to end court oversight of prison mental health treatment. In the course of contesting that move, Bien said attorneys representing mentally ill inmates discovered new problems.

A separate ongoing federal lawsuit challenges the state’s medical treatment of inmates. Both cases prompted federal judges to rule that overcrowding is the main source of inadequate care, forcing the state to greatly reduce its prison population.

The department also recently announced that it will seek to give more privileges to inmates who are held in disciplinary isolation units but have done nothing wrong.

The change applies to inmates who sometimes are held in administrative segregation units because, for instance, they could be attacked by other inmates or are related to a prison employee.

The rule change was proposed after inmates engaged in a lengthy hunger strike this summer over conditions for gang leaders and others held in segregation.

A new designation, known as Non-Disciplinary Segregation, will let those inmates buy more items from the prison canteen, keep more personal property and have more telephone contact with those outside prison.

MORE NEWS: Study Shows Stockton Universal Basic Income Experiment Led to Increased Employment

(© Copyright 2013 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)