started writing code generation