tidy and remove profiling