finished number_of_branches