let's comment to give a little context for this function (and why the pq's are not drained). Also, since this function is only used internally, we don't need to export it.