implement file corruption