make categories be ids instead of strings