reorg the code for great justice!