changed logit to logistic