added some modifications in the profiler