percentile index was off by one