passing args by reference, access methods for private variables