added wait list functionality