added interpolation for percentile