removed priorityqueue and pnode