Factors affecting reentry into the community