Structure for the flow PID part 2

flow PID is broken