encapsulation problem