corrected TERM variable