update words and highlight