Oklahoma Gov. Kevin Stitt signed a bill that will allow courts to shorten the prison sentences of people who can prove they committed their crime because they were experiencing domestic violence—a significant reform in a state that incarcerates many domestic violence survivors for fighting back in self-defense, doing drugs to cope, or failing to protect their kids from the abuse.

Stitt’s decision to approve the Oklahoma Survivors’ Act came last week, after he vetoed a similar bill with the same name in April. Oklahoma has the country’s highest rate of domestic violence per capita and among the highest rates of female incarceration. Under the new law, sentences of life without the possibility of parole could be reduced to 30 years or less; sentences of 30 years or more could be reduced to 20 years or less; and so on.