cleaning up logistic reg code