correct compiler error, std::endl->'\n'