modified query file