term_criterion changed from nll