index final table unless max value