new functions to plot