how a synchronizer works