fix comparison operators