empty distance should be avoided