break out dyRangeSelector function