defines functionatily on the search capabilities