The shameful cost of unnecessary detention