removed bar graph func