rewrote maxWordLength