firs commit of the search function for sild