euclidian needs debugging