added a 7 bit comparator