started with method code generation