change dinic template