use new style enum type