take into account intermediate procs in max_cont