finish search, now you can use serach function