better refresh graph