cleaned up some debug code