add euclidean distance