Replaced for with each