my_stream rewrote with stl usage