simplify flow