adding discontinuity back in