fix to comparison operators