front-end: segmentation