Handle geneic code