profiler added to the right place