fixed segmentation, added ticks and display