ostream update