changes categories to constants