emptying of queues added