bar graphs
refactoring