added newline character to fprintf statement