initial bar graph working