sync code