first tested version for discontinuity surface.