Add TERM variable back

thought it was uneeded and removed it