logistic regression update