consolidate branches