cleaning and documentation