change distance measure to euclidean