started migrating utility functions to lodash