The psychological effects of detention