error correction in decoder