replace async parallel with each