reorganise branches