get rid of cerr,cout
remove also the stringstream