fixed ref of auto
add dinic