reduce redundancy between query and search