adding percentile support