print encapsulation