mod for query kind