set decoding/encoding