add Transcode function