add farthest and closest