added check for distance basics