adding synchronizer code