Proper pop method in pq