fixed arrayForEach