working on update graph