removed lodash dependency from imperative version