waits method