XXX
DECODE TO ENCODE GENERATOR