search is almost done