updated code profiling