add gencode to setcomp