changed accepted words to a list