re-sync code