adding percentile lookup function