replaced using namespace std with std::