update  syncer function