graph is updated