minimizing changes in generated code