manner to eliminate missing categories and add new ones.