updated content_words method