updated Term class