removed unnecessary termContext argument