add dedicated code for max flow