idx type and PQue insert/pop