add category to query