maximal segments