fixed typo in output.cpp