added seaching funcationality