finished logistic regression