replaced std::cout by edm::LogInfo and added more debug statement