change output to segmented