added reading from distance file