fixed bar graph to be dynamic