change encoder/decoder