changing generated code