change for each loops