removing unnecessary comparator