rename def to defaultType