before syncing