converting to use Attribute instead of String as a parameter