Revert "clean the dead code"

This reverts commit 3a909f0af455b031b1a3505efdc620c59d7bfc67.