search almost working