don't terminate loop too early