barchart now shows the proper data