remove lodash dependency, replace with native forEach