move the queue declaration back