Updated itr incrementer in move function to for loop