selecting nearest neighbor events