separate out glm; add logistic regression