fixed std::ostream insertion