Revert "remove unreachable code"

This reverts commit 186ba5806dc85e944eb2b0df627386d2e46ac903.