removes debug code'