fix comparison instead of assignment