headers, using stringstream for outputs