use template variables for categories