clean class and out debug to main.cpp