foreach() changed with for() everywhere