modernized C++ stream invocations