Some ideas about transforming struct values