added euclidean cluster extraction