add gencode to listcomp