transforms called on all rather than g