update the words