changed _.map's for _.forEach as it made no sense to use map over forEach.