corrected band for new terminal.   Corrected break from outer for loop in getMax