use eachSeries instead of each