added missing code for type enum