Revert "delete redundancy codes"

This reverts commit b0cddaba1c48d0e51e6b5598108f794ad25bf51a.