anchor.diff:              FirstAddrId_1 =
                   case TblAcc of
                       [] ->
  -                        StAddrId;
  +                        FromAddrId;
                       _ ->
                           case lists:last(TblAcc) of
                               #vnodeid_nodes{id = 1} -> 0;
  
positive.code:                 end,
  
              RingGroup = lists:reverse([VNodeId_Nodes|TblAcc]),
              {Id1, 0, [#ring_group{index_from = FirstAddrId_1,
                                    index_to   = AddrId,
                                    vnodeid_nodes_list = RingGroup}|IdxAcc],
               [], AddrId + 1};
          false ->
              {Id1, GId + 1, IdxAcc,
               [VNodeId_Nodes|TblAcc], AddrId + 1}
      end;
  
  gen_routing_table_1(_,_RingSize,_GroupSize, AddrId, Id, GId, IdxAcc, TblAcc,_StAddrId) ->
      ?output_error_log(?LINE, "gen_routing_table_1/8", "Could not get redundancies"),
      {Id + 1, GId + 1, IdxAcc, [#vnodeid_nodes{}|TblAcc], AddrId + 1}.
  
  
  %% @doc get redundancies by key.
  
negative.code:     %% Retrieve redundancies by addr-id
      {_,_,RingGroup1,_,_} =
          lists:foldl(fun({AddrId, _Node},
                          {Id, GId, IdxAcc, TblAcc, FromAddrId}) ->
                              Ret = redundancies(Tbl, AddrId,
                                                 NumOfReplicas, NumOfAwarenessL2, Members),
                              RingConf = #ring_conf{id = Id,
                                                    ring_size    = RingSize,
                                                    group_size   = GroupSize,
                                                    group_id     = GId,
                                                    addr_id      = AddrId,
                                                    from_addr_id = FromAddrId,
                                                    index_list   = IdxAcc,
                                                    table_list   = TblAcc},
                              #ring_conf{id = Id_1,
                                         group_id = GId_1,
                                         from_addr_id = FromAddrId_1,
                                         index_list = IdxAcc_1,
                                         table_list = TblAcc_1
                                        } = gen_routing_table_1(Ret, RingConf),
                              {Id_1, GId_1, IdxAcc_1, TblAcc_1, FromAddrId_1}
                      end, {0, 0, [], [], 0}, CurRing),
      case RingGroup1 of
          [] ->
  