changed for encapsulation