getting rid of codegen call