more functions use new plot.data