add search mode
mention new function