add distances