updated attr_accessor