reorganizing with branches