Cleaning and sets ,s to save the file