added function to helpers to prepair for implmenting shortcut smoothing.