delete  before segmentation