improved transcoding