async.eachに処理を書き換え