refactor tcp release segments