stream realignment