change method for calculate quantiles