added queues back in instead of global varaibles