implament the search