edit Update Function in cmt_update