update the c++ code
update the write model
update