People who spent more time in prison were more likely to participate in prison programs