support for distanceTo