trying to update graph on real time