function update
Waiting queue check