added function plotter