removed Array#forEach calls