fixed BatchProcessor class