added batching