modify task flow