recover print method in Main