added Euclidian distance