add categories and subjects