removing std::cout from code