TopG transformation