added segmentation that works with offset and refreshed the display method to scale for disp