cake pattern reorg