correction in suffix checking