working code generation