further work for getting barplots working