code for Batch