added global TERM constant