changed to plot p, not 1-p