moved functions from wordlist to learning for readability