join_segments work