adding distance calculation in HD by vice versa direction