rename to getMaxIndexOfRows