euclidean cluster properly working