using variable length segments