added attr_accessor for virtual attribute