small changes in main of code_gen