cleaning up search