RS NAND latch works