correction encoding