add new terms and move old terms