foreach instead array iterator