torus impl finished