restoring the file to what it should be