finalized decoding structure