change category to use query name