torus functions embedded