enc is not being used in the decode call. Is that on purpose ?