runs through all the words