slight improvement of numeral selection function