clean and format