added localBatch method