Removing unnecessary comparator