do not build query twice