stream formatting and editing