change debug code back