using a re-encoding step during the decoding process