fixed percentile method for edge cases