change adapter selection algorithm