removing Typed.IfThenElseArith