add type to the constructor for easily inverting types in an enumeration