updated to accommodate new SM categories and ee