worked w/ codegen