removed output of distance