Preventing recidivism through programs and planning