resync method