clean up for profiling