method waits() added