replacing underscore dependency with lodash