add selector for print gencode