removed using std:: and used std::endl