updated up to logistic regression