sync wait()