use tags method instead of attr_accessor