use views for segmentation