graph upd & clean up