adapt select to small array