added type variable

assigns an enum type depending on the module code