use getter rather than instance variable