deleting and creating new categories