encapsulate variable