cleaning and formatting