updated branch slice detection