refactored form_words to be more concise