adding search function

doesn’t work yet, but adding it in