testing word list extremes and updating index