added more segmentation and other methods