synchronize write