update generated code