gate-flow