adding bar chart and renaming files