typo: decode to encode