adding synchronize wait for