Edited the index for branching