code generation staretd