treat all discontinuities in same way