added a case for when the term is a number