encapsulated each spellcheck function