logistic regression revision