moved to lodash function library
moved another forEach to lodash implementation