Modify categories to variable