updated logistic regression definition