removal of debug code