updated codegen examples