removes debug code for test