made the generated code compilable