problem with code generation solved