flowgraph seems to work