finish naive constant flow control