moved to using histograms rather than roodatasets. Much faster