added codegen for parameter variables