working on ouputter. does not get names properly? had to add #include<sstream>