spellcheck functions why is print value not defined in spellcheck