reorg archi code