Doubles decode-encode