profiling on, add 'with' in search()