implement to seach() method