adjust stopping conditions