draw smoother curve on plot.IMT; cleanup