smooth method changed to gam in plot_dist function