added the plot functions
add the plot functions