fixed the profiling stuff