add code to categories