model and generated code added