update term variable