bar chart and models issues resolved