speeding up the comparison operators