fixed the stringstream