changed maxflow