add debug for spelling check