almost-working contact selection method