got distance vector working