revert debug code