cleaned up attr_accessor