output cleanup before P(longer sequence)