update variance ratio code to include torus translation syntax