Residual scheme and general hypersurface section