deleted version - slow
Faster version
Reset on the end of sentences