minor improvement for search profiling