switched to lodash
switched back to using _.map