remove old profiling code in event