update contract model