add automatic selection using quantiles