refactor variable wordLength -> length