updates to comparator