updated generated code