problems with profiler first fix

don't remove this code