MLA internal nodes generation code