waiting method added