dynamic scaling of number of items returned