move errors to logistic regression