replaced variable access with getter for debugging