better generated code