getting rid of some debug method in main