add comparators for sorting