adding synchronization