update data segment and flow control