batch is implemented