distance wip
sum up distance file data