updated to not use find distances things