update dinic