updated NAND circuits