added nand early code