working on C phylo generation