recombination with updated branch indexes & unit tests