code's segmentation and clean repository