updated search prototype