profiling within evaluate function