synchronize writes