Prototype  search function