change MAXUpper to MAX Integer