simplify logistic loss