clean some debug code