Text this: Variable distance based D2D connection selection scheme in internet of vehicles