implemented barplots