why not use Attribute instances for declaring properties on Attribute instances to simplify this loop?