redo of stopwords function