partially implemented code generation