updating the words