updates to create.histogram and create.barplot