adding batch and transaction