matching index across branches