use set when possible for setTerm.