added functionality to MaxFlowFF