the default value of queueIndex