added wait timer