moved to main function in words.py