return terminal transform