flow model