prison is meant as a deterrent to crime