deleted expectedDistance.scala