improved accuracy of queue and clear