updated check_spelling