update writing data