made overloaded ostream << more proper