added portion to transcode segments