cleaning and indenting