encapsulation thread