use endl not "\n"