layers cleaning and file correction