reorg the data