replaced direct assignment with setter call