removes debug code