reshuffle of header lines