put categories into a table