adding search functions