updates to graphs