Replaced for with foreach loop