use map instead of eachSeries