switch to array batch instead of chained batch