flow in & out working