update flows