fixed the bug in codegen in dat place and stuff