TODO determine why equiDist doesn't work (run test to see the problem)