magLongDistance clean-up