eliminate redundant queueRefresh variable