adding batch processing feature