removes attr_accessor