That doesn't excuse the guards from exercising basic human decency. Confiscating items from prisoners is one thing, and probably would solve that problem; depriving them of sleep or subjecting them to loud music or any number of other things, however, solves nothing and is a violation of basic human rights under the "cruel and unusual" clause.