transform_attributes allows for arbitrary transforms on groups of attributes

the whitespace looks off here