cleaning up mass categorization