generate model update