kdist doesn't depend on coords any more