modify distance vector