transform both traces at once