corrections to plot tutorial