removal of dependency from native forEach