gates flow