removed overloading of getNumWaiting