changed percent_regression to regression_prob and moved it