use Attribute instead of *Attribute in ref-based types such as maps