change distances to hop count