correctly handling empty queue