wait argument added