change methods in BatchProcessor