stablizing file segmentation