.wait method added