added support for sequence number to Segment