queue size check