# Sequence Item (Transaction) Composition

**URL:** <https://verificationacademy.com/forums/t/sequence-item-transaction-composition/33549>\
**Category:** UVM\
**Tags:** transaction-class, UVM, constraint-randomization, extended-transaction, Sequence-Item-Composition, uvm-sequence-item\
**Created:** [September 29, 2017, 7:44pm UTC](https://verificationacademy.com/forums/t/sequence-item-transaction-composition/33549 "2017-09-29T19:44:34Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![arun.dsouza.arm.com](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@arun.dsouza.arm.com](https://verificationacademy.com/forums/u/arun.dsouza.arm.com)\
**Post date:** [October 2, 2017, 9:22pm UTC](https://verificationacademy.com/forums/t/sequence-item-transaction-composition/33549/15 "2017-10-02T21:22:24Z")

</div>

Another thing I noticed was that you’re trying to use two arguments for the constructor:

```verilog

function new(string name = "trans2");
super.new(name); 
t = trans1::type_id::create( "trans1", this ); // BAD!
endfunction : new

```

From [here](https://www.vmmcentral.com/uvm_vmm_ik/files3/seq/uvm_sequence_item-svh.html), you can see that the constructor only takes ONE argument, which is the name. UVM components (uvm\_component) takes two arguments since there’s a hierarchical relationship which is used for _build\_phase_, _connect\_phase_ and so on  
The correct code for this will be:

```verilog

function new(string name = "trans2");
super.new(name); 
t = trans1::type_id::create( "trans1"); // GOOD!
endfunction : new

```

I think this should get rid of both your errors.

---

_[View the full topic](https://verificationacademy.com/forums/t/sequence-item-transaction-composition/33549)._
