As Americans engage in social distancing, we must adhere more closely than ever to our core principles of protecting individual liberty and recognizing the dignity of every person. These tenets also apply to those behind bars.

With more than half of the top 50 locations with the most COVID-19 infections being jails and prisons, many lockups have gone into lockdown, which means that programming is suspended and those housed there must remain in their cells for virtually the entire day. At least 300,000 prisoners across the country have been affected by lockdowns. In Louisiana, the Department of Corrections brought individuals housed in parish jails to Camp J, a solitary confinement wing of the Angola prison that was closed in 2008 amid abysmal conditions.

Of course, corrections systems are right to pursue quarantines and medical isolation among the strategies for protecting the heath of both staff and those who are incarcerated. However, several considerations must be heeded to ensure these interventions do not devolve into prolonged solitary confinement that unduly burdens the broader health and individual liberty of people behind bars.

First, quarantines and medical isolation must be distinguished operationally from prolonged solitary confinement. Second, limitations on the capacity of systems to deliver programming that is a condition of parole must not delay release when such programs can be completed in the community. Finally, correctional agencies should take other steps such as boosting sanitary protocols to safeguard facilities so they are not solely reliant on restrictive approaches.

Differentiating punitive solitary confinement from quarantines and medical isolation is critical. The U.S. Department of Justice has defined solitary confinement as “removal from the general inmate population, whether voluntary or involuntary; placement in a locked room or cell, whether alone or with another inmate; and inability to leave the room or cell for the vast majority of the day, typically 22 hours or more.”

This parallels internationally recognized standards that focus on at least 22 hours of isolation and embody research showing that periods of 15 days or more in such settings jeopardize physical and mental health. Indeed, research has not only demonstrated that prolonged segregation leads to countless medical problems from sleep deprivation to paranoia, but also that it endangers the public through higher rates of recidivism upon release.

Punitive solitary confinement typically results from disciplinary violations, which can be as minor as possessing tobacco or failing to get in a line as instructed, as well as more serious violations involving physical altercations. Punitive solitary confinement often involves the loss or diminishment of privileges, such as the ability to make calls, access reading materials, and engage in recreation. About 5% to 8% of America’s prisoners are estimated to be in punitive solitary confinement on any given day.

Such punitive solitary confinement must be distinguished from quarantines and even medical isolation.

First, many practices can fall under the broad label of a quarantine that don’t necessarily involve restricting movements and privileges of individuals within a facility. For example in a system such as Texas with more than 100 state-run prisons and at least 3,253 known COVID-19 cases among both staff and those incarcerated, it could make sense to dedicate one or more prisons for the infected, particularly in an area such as Huntsville, which has five prisons. Quarantines could also involve separating infected populations across different wings of the same prison.

Of course, many factors must be considered, including the availability of testing, findings related to reinfection and immunity that are still emerging, and availability of medical care within a prison and the community surrounding it. The latter point illustrates how this challenge affects all Americans, particularly those in rural communities with prisons and limited hospital capacity. For example, in Ohio, more than 80% of the Marion County Correctional Institution’s inmates has tested positive, and the prison — through its workers — was linked to half of the community spread.

The lines are most likely to be blurred between punitive solitary confinement and medical isolation. While there are limitations associated with many antiquated and overcrowded prisons, corrections leaders must insist on ensuring that the theoretical distinctions between the two are manifested in practice.

First, medical professionals who work in corrections should be central to decisions about placing someone in medical isolation — and how long they must remain there. Second, privileges, including access to phone calls, written communication and commissary products must be maintained.

With in-person visits understandably suspended at most prisons, some states such as Oklahoma are temporarily providing a limited number of free phone calls. Additionally, recreational and exercise opportunities should continue with appropriate social distancing when in congregate environments.

This is also an opportunity for corrections systems to take advantage of technologies to ensure that even when a facility is in lockdown or individuals are medically isolated, educational content can be provided. For example, some prisons have received donations of tablet computers, which include firewalls to prevent inappropriate use. While this is welcome, correctional systems should avoid arrangements with specific corporations, such as the one in West Virginia, where inmates must pay three cents a minute to read books on the tablet (the books are in the public domain).

Observing these distinctions is not only essential to liberty and dignity, but also necessary to minimize the number of prisoners who refrain from seeking medical assistance when they are sick for fear of being placed in a setting little or no different from punitive solitary confinement. An April 15 article on the impact of COVID-19 on Michigan prisons indicates that inmates hid their symptoms because they did not want to be quarantined, with some citing fear of losing contact with friends and family.

Another important consideration is the role that lockdowns and similar restrictions can play in preventing the completion of programs, thereby delaying the release of individuals who otherwise would have been paroled or earned sufficient time through such programs to complete their sentences. For example, in Oregon, COVID-19-related suspensions in programming have resulted in at least 200 nonviolent individuals staying in prison longer than they would have otherwise.

This is counterintuitive, given that prisons and nursing homes are two of the sites where people are at the greatest risk of infection and death. For this reason, leaders such as Oklahoma Gov. Kevin Stitt, Colorado Gov. Jared Polis and Maryland Gov. Larry Hogan have issued orders to expedite the release of those in certain categories after a individualized assessment, such as geriatric and medically fragile individuals and those who are low-risk and near the end of their sentence.

Corrections agencies must implement alternatives to ensure disruptions in programming do not delay release. For example, they can reconfigure delivery of counseling and other programs behind bars so that it can occur through video or in rooms where individuals are at safe distances from one another. Alternatively, these programs can in many cases be delivered following release through either the parole agency or a nonprofit provider.

An April Council of State Governments Justice Center survey of reentry providers found that 45% are experiencing cash flow challenges due to the current crisis, so contracts to deliver programming to returning citizens could help them keep their doors open at a critical time. Of course, parole agencies and nonprofit reentry providers are subject to the same guidelines as others on social distancing, but this is much easier to accomplish outside of a prison.

Finally, prisons and jails must implement strategies beyond quarantining and medical isolation to reduce the casualties from COVID-19 for those who are incarcerated, correctional staff, and the communities around these facilities. Expediting releases based on individualized reviews to ensure public safety not only benefits those who are transitioned to the community before they become infected, particularly the elderly and medically frail, it also alleviates dangerous overcrowding.

For example, Nebraska has been reported at 158% capacity and Alabama at 100% over capacity. Not only do more crowded prisons promote the spread of disease, they feed tension among inmates and staff, leading to disciplinary violations and violence that contribute to greater use of punitive solitary confinement.

For all who are incarcerated, many steps can be taken to prevent the spread of COVID-19 beyond the quarantining and medical isolation. Fortunately, prisons and jails are stocking up on personal protective equipment and hand sanitizer, and in an increasing number of cases making their own. Some systems are purchasing ultraviolet light machines typically used by hospitals, which have shown success in killing previous types of coronaviruses.

Correctional agencies, like many other institutions, are also seeking to procure tests, which is particularly important given that staff who work in prisons come and go every day and are also vectors for spreading the virus to their families. Given limited supplies of PPE and tests, prisons and jails should prioritize inmates and staff who are 50 and older and have preexisting medical conditions, ranging from asthma to diabetes, that have been linked to higher COVID-19 morbidity rates.

One innovative option is to train prisoners to earn a certification in sanitation known as the Occupational Safety and Health Administration Hazardous Waste Operations and Emergency Response. The credential, which has two levels corresponding to 24 and 40 hours of training, respectively, would not only enable people who are incarcerated to sanitize their own environments but also give them a skill that stands to be highly marketable upon release.

Sadly, high numbers of incarcerated people, correctional staff and community members living near correctional institutions are becoming infected, and many will continue to become seriously ill and, in some cases, pass away. As systems take steps to minimize the damage, they must also ensure that progress in reducing punitive solitary confinement does not become another casualty of this pandemic. After all, over the last decade, jurisdictions ranging from Colorado to Maine and Mississippi have made remarkable progress in scaling back prolonged solitary confinement while at the same time reducing prison violence.

In addition to avoiding backsliding, this crisis provides an opportunity to rethink the very structure of correctional institutions. Some prisons in the U.S. are more than a century old and many lack adequate ventilation. This not only accelerates the spread of viruses, but may also lead to transmission of higher viral loads, which new research indicates is correlated with more serious sickness.

As dozens of states have adopted smart reforms to safely reduce prison populations, and as crime has declined, policymakers have rightly focused on closing prisons rather than building them. Still, a 2019 Vera Institute report found that many counties were planning or constructing new jails. Improving ventilation so air is quickly refreshed must now be a priority both for new facilities and as part of retrofitting existing ones.

This pandemic has cast a harsh but also revelatory spotlight on the most vulnerable segments of society, including those incarcerated in our nation’s darkest places. But it is also creating a moment to reimagine existing systems to better align them with our core values. If we protect the last remaining liberties of those behind bars and remember that every person has value, we can not only minimize misery but usher in a new era in which our corrections system lives up to our highest aspirations.