iteration with pop [MJ-537]