added reference to sstream