the vars can be cleared in mid-iterations