changed calculation of data on queue count for pop.