added logging to make logistic regression happy