added logistic regression loss