it works! fixed stupid bug : exprSub(a, num) does not change a in place, but instead returns a new changed expression.