add utility remove operand and terms, calculate their result and return them as a term
fix a divide by zero error