encapsulation methods