removed dead line in getHighestDegree()