explain how to run batches