changing setting a class property to changing an attribute