replacing after sync with remote