update NUM_QUEUE