removing profiling code