modify polygon query