implement some comparator operators