minor change to region-to-query script