added TERM variable