clean up file to look as it did before changes