remove logging and debug code