fixed the integer comparator