add logistic loss