removed extra indents in theTerm method