Revert "Revert "delete redundancy codes""

This reverts commit 7a6e6744029213200ba196670b885935e6ed119c.