All in error correction