added an end when word is destroyed