added quantile option