`transform` allows for arbitrary transforms on certain attributes