setup for logistic regression etc.