modified query to maintain prior queries