added rounded distance