more methods on codegen-instruction