mid point, figure out maxRanks