added print distance
commented.