cleaning and profiling