changed the percentile calc to true percentile