had missed checking in the euclidean distance func