add link distance