update code generator