updt graph