removing discontinuity from model