add more code to gencode