made categories from min_query a string