add l2 distance