small cosmetic change in distance calculation