cws error correction