for consistency please rename (a) to attrToSet and give it explicit :string typing