completed generator for extended type
fixed id for extended type code generator