added missing include ostream statement