pass lodash to resolve function
code cleanup