improvements for spell checker