add newline to cout in main