removed beta plotting function (as this is now in the larger histogram function