cleaning file's structure