added wait and next