add batch processing CAST