use flow instead of stream in delegate partition