adding percentile calculation