using attr setter instead of variable in mixin