removing direct instance variable access