remove variable assignment from comparison