search tool almost working