finished ppareto and plot