continued with logic on how to process batch