setting up queue