add logic to update terms