change cerr to cout