removed outdated profiling code