udpate generated code