included distance calculated for distance n