reducing debug code