update to plot learning curves