actually finding discontinuities