added clear_queue