tweaked stop cond.