code generator updated