added hist ability to plot2, needs further testing