updates for graphs