most of max-flow alg; errory