Keep iter variables inside the loop