revert debug codes