pick the nearest object