finally turning it to real euclidean distances
cooler interface functiojns