factors affecting sentencing