adding search functino