how to handle corrupted data in a dataset