use a model for flows