add functionality to search