rearrange pitches leaves