updated model generate

updated model generate