added part of a search functionality