replaced underscore with lodash