correct? logic for DistanceVector