write model
write model