updates generated code