moves iterator