update subflow