started to implement the flow ordering