removed bad implementation of batching