correction in batch mode