flow simplification