clean and complete file