syncing before replacing